package kr.hkit.javaproject.dd1.a;

import java.sql.Connection;
import java.util.Properties;

import kr.hkit.javaproject.dd1.common.ConnectionFactory;
import kr.hkit.javaproject.dd1.dao.DepartmentDAO;

public class TestMain {
	public static void main(String[] args) {
		Connection connection = ConnectionFactory.getConnection();
		System.out.println(connection);
		
		
//		DepartmentDAO dao = new DepartmentDAO(connection);
		
		String driver = "com.mysql.jdbc.Driver";
		String url = "jdbc:mysql://localhost:3306/mysql_study";
		String user = "root";
		String password = "1111";
		
		DBProperties.saveProperties("dbcon1.xml", driver, url, user, password);
//		Properties prop = DBProperties.loadPropertis("dbcon1.xml");
//		DBProperties.prnProperties(prop);
		
		/*Department d = new Department(7, "파티", 39);
		try {
			dao.insertItem(d);
		} catch (SQLException e) {
			System.err.print("에러!!");
		}*/
	}
}
